package com.kongmou.springReview.advanced.taskExecutor;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncService {

	@Async
	public void executeTask(Integer i){
		System.out.println("执行异步任务:" + i);
		i++;
	}
	
	public void executeTaskPlus(Integer i){
		System.out.println("执行异步任务+1:" + i);
		i++;
	}

}
